<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num1=100;
        var num2=num1;

        console.log(num2);

        var x=10;
        var y=20;

        console.log(x+=y);
    </script>
</body>
</html>